package org.apache.servicecomb.samples.practise.houserush.sale.redis;

import org.springframework.stereotype.Component;

@Component
public class RedisKey {
    //活动力 房源订单数据的前缀
    private final String SALEHASHID = "SALEHASHID_";
    //活动数据的前缀
    private final String SALEID = "SALEID_";
    //没有房源订单的活动数据前缀
    private final String SALENOHOUSEORDER = "SALENOHOUSEORDER_";
    public String getSaleHashKey(int id) {
        return SALEHASHID + id;
    }
    public String getSaleKey(int id) {
        return SALEID + id;
    }

    public String getSaleNoHouseOrder(int id) {
        return SALENOHOUSEORDER + id;
    }
}
